/* 存放头部和底部的公共样式 */
html{
    font-size: 0;
}
html, body {
    width: 100%;
    height: 100%;
}

.header {
    width: 100%;
    height: 80px;
    background-color: #fff;
    /*overflow: hidden;*/
}

.footer {
    width: 100%;
    /*height: 100px;*/
    background-color: #fff;
}

.w {
    position: relative;
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.header .w {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    width: 87px;
    display: block;
}

.header .nav-item {
    float: left;
    /*width: fit-content;*/
    height: 100%;
    text-align: center;
    line-height: 80px;
    margin-right: 41px;
}

.header .nav-item a {
    display: block;
    /*width: fit-content;*/
    height: 100%;
    color: #666666;
    font-size: 16px;
}

/* .header .nav-item:hover a{
    color: #1d1d1d;
} */
.header .nav-item .line {
    display: none;
    width: 90%;
    height: 1px;
    background-color: #b9ab77;
    margin: auto;
    margin-top: -26px;
}

.header .nav-item:hover .line {
    display: block;
}

.footer-r-item a,
.footer-l-item {
    font-size: 12px;
    font-weight: normal;
    color: #323232;
}

.footer .footer-r {
    float: right;
}

.footer .footer-l,
.footer .footer-r-item {
    float: left;
    margin: 40px 64px 12px 0;
}

.footer .footer-l-item:not(:last-child) {
    margin-bottom: 12px;
}

.footer .footer-r-item:first-child {
    margin-right: 2px;
}

@media (max-width: 768px) {
    body {
        margin: auto;
    }

    .w {
        width: 95%;
        height: 100%;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    .header {
        background-color: #fff;
        position: relative;
        top: 0;
        z-index: 999;
    }

    .header .nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background-color: rgba(0, 0, 0, .3);
    }

    .header .nav-item {
        float: none;
        margin: auto;
        height: 10%;
    }
    .header .nav-item .line{
        background-color: transparent;
    }
    .header .nav-item {
        background-color: #fff;
    }

    .header .box {
        transform-origin: 50% 21px;
        float: right;
        cursor: pointer;
        transition: all .3s linear;
    }

    .header .box .line {
        background-color: #3d3d3d;
        width: 20px;
        height: 2px;
        margin: 5px auto;
        transition: all .3s linear;
    }

    .header .box .line:nth-child(1) {
        margin-top: 13px;
    }

    .header .box.active .line:nth-child(1) {
        margin-top: 13px;
        transform: translateY(7px);
    }

    .header .box.active .line:nth-child(2) {
        width: 0;
    }

    .header .box.active .line:nth-child(3) {
        transform: translateY(-7px) rotate(90deg);
    }

    .header .box.active {
        transition-delay: .3s;
        transform: rotate(45deg);

    }

    .footer .footer-r,
    .footer .footer-l,
    .footer .footer-r-item {
        float: none;
        width: 100%;
        text-align: center;
    }

}